package com.xunji.user.vo.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel("人员查询vo")
@Data
public class UserQueryRequest {
    @ApiModelProperty("人员名称")
    private String name;

    @ApiModelProperty("分页条数")
    @NotNull(message = "分页条数不能为空")
    @Min(value = 1, message = "分页条数不能小于1")
    private int pageSize;

    @ApiModelProperty("页码")
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private int pageNum;

    // 组织机构id，默认为0，查询条件不生效
    private int departmentId;
}
